<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
	<th:block th:include="include/include :: header('操作日志列表')" />
	<th:block th:include="include/include :: bootstrap-select-css" /><base>
	<style type="text/css">.input-parent{position: relative; float: left;}.ie-placeholder{left: 10px !important;top:0 !important}</style>
</head>
<body class="gray-bg">
	<div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="operlog-form">
					<div class="select-list">
						<ul>
							<li class="select-selectpicker">
								<label>日志类型： </label>
								<select name="type" th:with="type=${@dict.getType('log_type')}">
									<option value="">所有</option>
									<option th:each="dict : ${type}" th:text="${dict.label}" th:value="${dict.value}"></option>
								</select>
							</li>
							<li>
								<label>日志标题： </label><input type="text" name="title"/>
							</li>
							<li>
								<label>操作人员： </label><input type="text" name="createBy"/>
							</li>	
							<li class="select-time">
								<label>操作时间： </label>
								<div class="input-parent"><input type="text" class="time-input" id="startTime" placeholder="开始时间" name="beginTime"/></div>
								<span>-</span>
								<div class="input-parent"><input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime"/></div>
							</li>
							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
								<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			
			<div class="btn-group-sm" id="toolbar" role="group">
		        <a class="btn btn-danger" onclick="$.operate.clean()" sec:authorize="hasAuthority('sys_log_del')">
	                <i class="fa fa-trash"></i> 清空
	            </a>
	            <a class="btn btn-warning" onclick="$.table.exportMyExcel()">
		            <i class="fa fa-download"></i> 导出
		        </a>
	        </div>
	        
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table"></table>
			</div>
		</div>
	</div>
	
	<th:block th:include="include/include :: footer" />
	<th:block th:include="include/include :: bootstrap-select-js" />
	<script th:inline="javascript">
		/*<![CDATA[*/
			var deleteFlag = [[${@permission.hasPermi('sys_log_del')}]];
			var datas = [[${@dict.getType('log_type')}]];
		/*]]>*/
	</script>
	<script th:src="@{/pages/sysadm/syslog/syslogList.js}"></script>
</body>
</html>